package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
//供应商维护商品表
public class SupplierSupplyOfGoods {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer pId;//用户id(供应商id)

    private Integer gId;//商品id

    private Double supplierPrice;//供应商提供的价格

    private Integer isCheck;//审核状态
    //0:等待审核 1:审核通过 2.审核未通过

    private Integer isDelete; //供应商品状态(删除状态)
    //0：供应中 1：停止供应

    @TableField(exist = false)
    private Users user; //供应商对象

    @TableField(exist = false)
    private ShopInfo shop; //商品对象

    @TableField(exist = false)
    private String priceSorted; //是否要对价格进行排序

    @TableField(exist = false)
    private Boolean isDeleteBoolean; //商品对象
}